<%@ page language="java" import="java.util.*,
								com.usermgr.bean.*;
" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'userMgr.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body bgcolor="#FAFBE7">
  	<center>
  		<div id="updatePermision"><% if(request.getAttribute("resultStatus")!=null){  %>
  			<font color="red">${resultStatus}</font>	
  		<%}%></div>
    	<div>
    		<form action="updatapermission.action" method="post">
			用户名称：<select name="user.ofId">
				<%
					List<OfUser>  users = (List<OfUser>)request.getAttribute("allUser");
					for(int i = 0; i< users.size(); i++){
						OfUser user = users.get(i);
				 %>
				 		<option value="<%=user.getOfId()%>"><%=user.getOfName() %></option>
				 <%
				 	}
				 %>
				</select><br/>
				操           作：<select name="user.ofPermission">
					<option value="1">更改为管理员</option>
					<option value="0">更改为普通用户</option>
				</select><br/>
				<input type="submit" value="更改">
			</form>
    	</div>
    </center>
  </body>
</html>
